package com.ruoyi.domain;

// 自定义 DTO（避免直接返回 Camunda 实体）
public class ProcessDefinitionDTO {
    private String id;          // 流程定义 ID（格式：{key}:{version}:{deploymentId}）
    private String key;         // 流程定义 Key（设计时自定义的唯一标识）
    private String name;        // 流程定义名称
    private int version;        // 版本号（每次重新部署会递增）
    private String deploymentId;// 部署 ID

    public ProcessDefinitionDTO(String id, String key, String name, int version, String deploymentId) {
        this.id = id;
        this.key = key;
        this.name = name;
        this.version = version;
        this.deploymentId = deploymentId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    public String getDeploymentId() {
        return deploymentId;
    }

    public void setDeploymentId(String deploymentId) {
        this.deploymentId = deploymentId;
    }
// Getter 方法省略
}